<%@ page import="com.zs.dao.AdminDao" %>
<%@ page import="com.zs.entity.Admin" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: 悠乐美
  Date: 2024/1/11
  Time: 10:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
管理员管理
<a href="adminAdd.jsp">添加管理员</a>
<table border="1px" style="width: 100%">
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>手机</th>
        <th>邮箱</th>
        <th>操作</th>
    </tr>
    <%
        AdminDao adminDao = new AdminDao();
        List<Admin> list = adminDao.getAllAdmin();

        for (int i = 0; i < list.size(); i++) {
    %>
    <tr>
        <td><%=list.get(i).getId()%>
        </td>
        <td><%=list.get(i).getAname()%>
        </td>
        <td><%=list.get(i).getPhone()%>
        </td>
        <td><%=list.get(i).getEmail()%>
        </td>
        <td>
            <a href="">修改</a>
            <a href="">删除</a>
        </td>
    </tr>

    <%}%>

</table>


</body>
</html>
